﻿using System;
//using msBsc.AppLogic.Hrp;
//using Ghw;

namespace msBsc.WebUi
{
    public partial class wfPromoHome : msBsc.Cls.BPPromo
    {
        //protected override void OnInit(EventArgs e)
        //{
        //    base.OnInit(e);

        //    Literal litUrl = new Literal();
        //    litUrl.Text = string.Format(@"<script src='{0}' type='text/javascript'></script>", msBsc.AppLogic.Cfg.SystemFileDir.FileDir.UrlBase + "jqPlugin/js/Loginox.js");
        //    this.Header.Controls.AddAt(1, litUrl);
        //}
        //UserInfo userinfo = new UserInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            //Response.Write(gettable());
            //return;
            Response.Clear();
            //Response.AddHeader("Content-Type", "application/json; charset=GB2312");


            //Response.CacheControl = "no-cache";             //设置页面无缓存
            Response.Expires = -1;
            Response.CacheControl = "no-cache";
             
            if (!IsPostBack && !IsCallback)
            { 
                SetContrlValue("txtUserShow", msBsc.SvRef.UserInfo.Operator  ); 
            } 
        }
             

        public override void InitialByParam()
        {
            try
            {
                if (strAction == "SHOW_ALL")
                {

                    //ShowAttendance();
                }
                else if (strAction == "SHOW_TIME")
                {
                    this.ExecJScript("ShowSystemTime('" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "');");
                } 
            }
            catch (Exception err)
            {
                this.Alert("服务器端错误：" + err.Message);
            }
            base.InitialByParam();
        }
    }
}